package com.mvc.board.controler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.mvc.board.model.BoardDao;
import com.mvc.board.model.BoardVo;
import com.mvc.common.AbstractControler;
import com.mvc.common.ModelAndView;

public class BoardViewControler extends AbstractControler {
	@Override
	public ModelAndView doServiece(HttpServletRequest request,
			HttpServletResponse response) {
		BoardDao dao = new BoardDao();
		BoardVo vo = dao.boardViewVo("1");
		request.setAttribute("boardVo", vo);
		return new ModelAndView(request, response, "/board/boardview.jsp");
	}
}
